package com.mysterlee.test;

import java.net.*;
import java.io.*;

public class NetworkEx4{
	public static void main(String args[]){
		URL url = null;		
		BufferedReader input = null;
		FileReader fr = null;
		String address = "http://localhost:8090/sample2014/test-json.html";
		
		
		//address = "http://localhost:8090/sample2014/data/123.jpg";
		
		URI uri = null;
		
		File file = new File(uri);
		
		
		
		String line = "";
		
		try{
			/*
			new URL(address)
			input = new BufferedReader(new InputStreamReader(.openStream()));
			
			while((line=input.readLine()) != null){
				System.out.println(line);				
			}
			input.close();
			*/
			fr = new FileReader(file);
			fr.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}